package org.unv.mozhi.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


/**
 * The persistent class for the m_audit database table.
 * 
 */
@Entity
@Table(name="m_audit")
public class MAudit implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="M_AUDIT_AUDITID_GENERATOR", sequenceName="MOZHI_SEQ")
	@GeneratedValue(strategy=GenerationType.AUTO, generator="M_AUDIT_AUDITID_GENERATOR")
	@Column(name="AUDIT_ID")
	private int auditId;

	@Column(name="CHNG_TYPE")
	private String chngType;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="CREATE_DT",  nullable=false)
	private Date createDt;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="UPDATE_DT")
	private Date updateDt;

	//bi-directional many-to-one association to MMsgLang
    @ManyToOne
	@JoinColumn(name="MSG_LANG_ID")
	private MMsgLang MMsgLang;

	//bi-directional many-to-one association to MUser
    @ManyToOne
	@JoinColumn(name="USER_ID",  nullable=false)
	private MUser MUser;

    public MAudit() {
    }

	public int getAuditId() {
		return this.auditId;
	}

	public void setAuditId(int auditId) {
		this.auditId = auditId;
	}

	public String getChngType() {
		return this.chngType;
	}

	public void setChngType(String chngType) {
		this.chngType = chngType;
	}

	public Date getCreateDt() {
		return this.createDt;
	}

	public void setCreateDt(Date createDt) {
		this.createDt = createDt;
	}

	public Date getUpdateDt() {
		return this.updateDt;
	}

	public void setUpdateDt(Date updateDt) {
		this.updateDt = updateDt;
	}

	public MMsgLang getMMsgLang() {
		return this.MMsgLang;
	}

	public void setMMsgLang(MMsgLang MMsgLang) {
		this.MMsgLang = MMsgLang;
	}
	
	public MUser getMUser() {
		return this.MUser;
	}

	public void setMUser(MUser MUser) {
		this.MUser = MUser;
	}
	
}